package com.wm.blog.center.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author sshdg
 * @email sshdg140135@foxmail.com
 * @date 2021-05-11 17:25:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_blog")
public class BlogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 副标题
	 */
	private String subTitle;
	/**
	 * 内容
	 */
	private String content;
	/**
	 * 博客状态：1-草稿；2-发布
	 */
	private Integer status;
	/**
	 * 分类id
	 */
	private Long classId;
	/**
	 * 谁的博客
	 */
	private Long memberId;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
